package com.sc.nft.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.sc.nft.entity.dto.MallUserActivityRankingDetailDTO;
import com.sc.nft.entity.vo.MallUserActivityRankingDetailVO;

import java.math.BigDecimal;
import java.util.Date;

public interface MallUserActivityRankingDetailService {
    IPage<MallUserActivityRankingDetailDTO> queryMallUserActivityRankingDetailPage(Page toMp, Long cyclesId, String phoneNumber);

    /**
     * 查询排行榜
     *
     * @param cyclesId
     * @return
     */
    MallUserActivityRankingDetailVO queryMallUserActivityRankingDetailList(Long cyclesId);

    /**
     * 更新或保存榜单
     *
     * @param userId
     * @param confirmedTotalAmount
     * @param totalAmount
     * @param statisticTime 统计周期
     * @return
     */
    Boolean saveOrUpdate(Long userId, BigDecimal confirmedTotalAmount, BigDecimal totalAmount, Date statisticTime);
}
